package org.pp.vo;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.pp.entity.PpGoodsAttr;
import org.pp.entity.PpGoodsSku;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Setter
@Getter
public class AdminMiniappGoodsDetailVo {

    @Schema(description = "商品id")
    private Long goodsId;

    @Schema(description = "商品名称")
    private String name;

    @Schema(description = "冗余分类id")
    private Long[] catIds;

    @Schema(description = "封面")
    private String cover;

    @Schema(description = "封面url")
    private String coverUrl;

    @Schema(description = "售价（sku的最小售价）")
    private String price;

    @Schema(description = "幻灯片图片")
    private String[] sliders;

    @Schema(description = "幻灯片图片Url")
    private String[] slidersUrl;

    @Schema(description = "满额包邮的起始金额")
    private BigDecimal sysFreeFrom;

    @Schema(description = "介绍")
    private String intro;

    @Schema(description = "商品详情，富文本")
    private String detailIntro;

    @Schema(description = "商品品牌等参数，json")
    private Map<String,Object> params;

    @Schema(description = "服务保障描述")
    private String ensure;

    @Schema(description = "销量，这个字段是sku销量之和，卖出去后更新")
    private Integer sales;

    @Schema(description = "单件运费")
    private BigDecimal postage;

    @Schema(description = "发货地")
    private String postFrom;

    @Schema(description = "是否免运费")
    private Boolean postageIfFree;

    @Schema(description = "是否服从系统满免运费规则")
    private Boolean postageInRuleIfFree;

    @Schema(description = "相同sku邮费是否合并")
    private Boolean postageSkuIfMerge;


    @Schema(description = "商品属性")
    List<PpGoodsAttr> attrs;

    @Schema(description = "商品sku")
    List<PpGoodsSku> skus;

}
